import Vue from 'vue'
import Vuex from 'vuex'
import admin from './modules/admin'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    collapse: false
  },
  mutations: {
    ToggleMenu (state) {
      state.collapse = !state.collapse
    }
  },
  modules: {
    admin
  }
})
export default store
